import {ReceiveListComponent} from './receive-list/receive-list.component';
import {NoticeComponent} from './notice.component';
import {NoticeEditComponent} from './notice-edit/notice-edit.component';
import {PublishListComponent} from './publish-list/publish-list.component';
import {AuthorityGuard} from '../common/interceptor/authority.guard';

export const noticeRoutes = [
    {
        path: '',
        canActivateChild: [AuthorityGuard],
        component: NoticeComponent,
        children: [
            /** 默认跳转界面 **/
            {path: '', redirectTo: 'receivelist', pathMatch: 'full'},
            /**  收件箱  **/
            { path: 'receivelist', component: ReceiveListComponent },
            /**  发件箱  **/
            { path: 'publishlist', component: PublishListComponent },
            /**  编辑公告  **/
            { path: 'edit', component: NoticeEditComponent },
        ]
    }
];
